package com.springcloud.system.user.mapper;

import com.springcloud.common.entity.Resource;
import com.springcloud.common.core.entity.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author mori
 * @since 2019-11-04
 */
@Repository
public interface ResourceDao extends BaseMapper<Resource> {

    /**
     * 根据用户名获取资源列表
     * @param username
     * @return
     */
    List<Resource> selectListByUsername(@Param("username") String username);

}
